package com.wcm.system.model.shehuikexueyuantushu;

import javax.persistence.*;

@Entity
@Table(name = "cms_channel", schema = "dataexchange_difangzhi", catalog = "")
public class CmsChannelEntity {
    private String channelId;
    private String websiteId;
    private String channelTypeId;
    private String websiteWorkflowId;
    private String parentId;
    private String codeName;
    private String channelName;
    private String displayName;
    private Integer seqNum;
    private String redirectUrl;
    private String status;
    private String manuscriptTypeId;
    private String isNavigation;
    private String isReferSubchannel;
    private String isRss;
    private String workflowId;
    private String formTemplateId;
    private String creatorId;
    private String publisher;
    private String modifierId;
    private Long createdTime;
    private Long modifiedTime;
    private Long publishedTime;
    private String url;
    private String channelPageTemplateId;
    private String workflowRefId;
    private String channelLevels;
    private String editorType;
    private String isPushed;
    private String isSameShowCc;
    private String ccWorkflowId;
    private Long visits;
    private String admin;
    private String expand;
    private String channelBatchNum;
    private String isvoice;
    private String languages;
    private String speed;
    private String field;
    private String sound;
    private String volume;
    private String frequency;
    private Long workflowArtificialcontrol;
    private Long validitytime;
    private String spiderSourceId;
    private String spiderSourceName;
    private String archiveSuport;
    private String archiveMonth;
    private String archiveRevoke;
    private String manuOptAllowed;
    private Long validityTime;

    @Id
    @Column(name = "CHANNEL_ID")
    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    @Basic
    @Column(name = "WEBSITE_ID")
    public String getWebsiteId() {
        return websiteId;
    }

    public void setWebsiteId(String websiteId) {
        this.websiteId = websiteId;
    }

    @Basic
    @Column(name = "CHANNEL_TYPE_ID")
    public String getChannelTypeId() {
        return channelTypeId;
    }

    public void setChannelTypeId(String channelTypeId) {
        this.channelTypeId = channelTypeId;
    }

    @Basic
    @Column(name = "WEBSITE_WORKFLOW_ID")
    public String getWebsiteWorkflowId() {
        return websiteWorkflowId;
    }

    public void setWebsiteWorkflowId(String websiteWorkflowId) {
        this.websiteWorkflowId = websiteWorkflowId;
    }

    @Basic
    @Column(name = "PARENT_ID")
    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Basic
    @Column(name = "CODE_NAME")
    public String getCodeName() {
        return codeName;
    }

    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }

    @Basic
    @Column(name = "CHANNEL_NAME")
    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    @Basic
    @Column(name = "DISPLAY_NAME")
    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    @Basic
    @Column(name = "SEQ_NUM")
    public Integer getSeqNum() {
        return seqNum;
    }

    public void setSeqNum(Integer seqNum) {
        this.seqNum = seqNum;
    }

    @Basic
    @Column(name = "REDIRECT_URL")
    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    @Basic
    @Column(name = "STATUS")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "MANUSCRIPT_TYPE_ID")
    public String getManuscriptTypeId() {
        return manuscriptTypeId;
    }

    public void setManuscriptTypeId(String manuscriptTypeId) {
        this.manuscriptTypeId = manuscriptTypeId;
    }

    @Basic
    @Column(name = "IS_NAVIGATION")
    public String getIsNavigation() {
        return isNavigation;
    }

    public void setIsNavigation(String isNavigation) {
        this.isNavigation = isNavigation;
    }

    @Basic
    @Column(name = "IS_REFER_SUBCHANNEL")
    public String getIsReferSubchannel() {
        return isReferSubchannel;
    }

    public void setIsReferSubchannel(String isReferSubchannel) {
        this.isReferSubchannel = isReferSubchannel;
    }

    @Basic
    @Column(name = "IS_RSS")
    public String getIsRss() {
        return isRss;
    }

    public void setIsRss(String isRss) {
        this.isRss = isRss;
    }

    @Basic
    @Column(name = "WORKFLOW_ID")
    public String getWorkflowId() {
        return workflowId;
    }

    public void setWorkflowId(String workflowId) {
        this.workflowId = workflowId;
    }

    @Basic
    @Column(name = "FORM_TEMPLATE_ID")
    public String getFormTemplateId() {
        return formTemplateId;
    }

    public void setFormTemplateId(String formTemplateId) {
        this.formTemplateId = formTemplateId;
    }

    @Basic
    @Column(name = "CREATOR_ID")
    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    @Basic
    @Column(name = "PUBLISHER")
    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    @Basic
    @Column(name = "MODIFIER_ID")
    public String getModifierId() {
        return modifierId;
    }

    public void setModifierId(String modifierId) {
        this.modifierId = modifierId;
    }

    @Basic
    @Column(name = "CREATED_TIME")
    public Long getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Long createdTime) {
        this.createdTime = createdTime;
    }

    @Basic
    @Column(name = "MODIFIED_TIME")
    public Long getModifiedTime() {
        return modifiedTime;
    }

    public void setModifiedTime(Long modifiedTime) {
        this.modifiedTime = modifiedTime;
    }

    @Basic
    @Column(name = "PUBLISHED_TIME")
    public Long getPublishedTime() {
        return publishedTime;
    }

    public void setPublishedTime(Long publishedTime) {
        this.publishedTime = publishedTime;
    }

    @Basic
    @Column(name = "URL")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Basic
    @Column(name = "CHANNEL_PAGE_TEMPLATE_ID")
    public String getChannelPageTemplateId() {
        return channelPageTemplateId;
    }

    public void setChannelPageTemplateId(String channelPageTemplateId) {
        this.channelPageTemplateId = channelPageTemplateId;
    }

    @Basic
    @Column(name = "WORKFLOW_REF_ID")
    public String getWorkflowRefId() {
        return workflowRefId;
    }

    public void setWorkflowRefId(String workflowRefId) {
        this.workflowRefId = workflowRefId;
    }

    @Basic
    @Column(name = "CHANNEL_LEVELS")
    public String getChannelLevels() {
        return channelLevels;
    }

    public void setChannelLevels(String channelLevels) {
        this.channelLevels = channelLevels;
    }

    @Basic
    @Column(name = "EDITOR_TYPE")
    public String getEditorType() {
        return editorType;
    }

    public void setEditorType(String editorType) {
        this.editorType = editorType;
    }

    @Basic
    @Column(name = "IS_PUSHED")
    public String getIsPushed() {
        return isPushed;
    }

    public void setIsPushed(String isPushed) {
        this.isPushed = isPushed;
    }

    @Basic
    @Column(name = "IS_SAME_SHOW_CC")
    public String getIsSameShowCc() {
        return isSameShowCc;
    }

    public void setIsSameShowCc(String isSameShowCc) {
        this.isSameShowCc = isSameShowCc;
    }

    @Basic
    @Column(name = "CC_WORKFLOW_ID")
    public String getCcWorkflowId() {
        return ccWorkflowId;
    }

    public void setCcWorkflowId(String ccWorkflowId) {
        this.ccWorkflowId = ccWorkflowId;
    }

    @Basic
    @Column(name = "VISITS")
    public Long getVisits() {
        return visits;
    }

    public void setVisits(Long visits) {
        this.visits = visits;
    }

    @Basic
    @Column(name = "ADMIN")
    public String getAdmin() {
        return admin;
    }

    public void setAdmin(String admin) {
        this.admin = admin;
    }

    @Basic
    @Column(name = "EXPAND")
    public String getExpand() {
        return expand;
    }

    public void setExpand(String expand) {
        this.expand = expand;
    }

    @Basic
    @Column(name = "channel_batch_num")
    public String getChannelBatchNum() {
        return channelBatchNum;
    }

    public void setChannelBatchNum(String channelBatchNum) {
        this.channelBatchNum = channelBatchNum;
    }

    @Basic
    @Column(name = "ISVOICE")
    public String getIsvoice() {
        return isvoice;
    }

    public void setIsvoice(String isvoice) {
        this.isvoice = isvoice;
    }

    @Basic
    @Column(name = "LANGUAGES")
    public String getLanguages() {
        return languages;
    }

    public void setLanguages(String languages) {
        this.languages = languages;
    }

    @Basic
    @Column(name = "SPEED")
    public String getSpeed() {
        return speed;
    }

    public void setSpeed(String speed) {
        this.speed = speed;
    }

    @Basic
    @Column(name = "FIELD")
    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    @Basic
    @Column(name = "SOUND")
    public String getSound() {
        return sound;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }

    @Basic
    @Column(name = "VOLUME")
    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    @Basic
    @Column(name = "FREQUENCY")
    public String getFrequency() {
        return frequency;
    }

    public void setFrequency(String frequency) {
        this.frequency = frequency;
    }

    @Basic
    @Column(name = "WORKFLOW_ARTIFICIALCONTROL")
    public Long getWorkflowArtificialcontrol() {
        return workflowArtificialcontrol;
    }

    public void setWorkflowArtificialcontrol(Long workflowArtificialcontrol) {
        this.workflowArtificialcontrol = workflowArtificialcontrol;
    }

    @Basic
    @Column(name = "validitytime")
    public Long getValiditytime() {
        return validitytime;
    }

    public void setValiditytime(Long validitytime) {
        this.validitytime = validitytime;
    }

    @Basic
    @Column(name = "spider_source_id")
    public String getSpiderSourceId() {
        return spiderSourceId;
    }

    public void setSpiderSourceId(String spiderSourceId) {
        this.spiderSourceId = spiderSourceId;
    }

    @Basic
    @Column(name = "spider_source_name")
    public String getSpiderSourceName() {
        return spiderSourceName;
    }

    public void setSpiderSourceName(String spiderSourceName) {
        this.spiderSourceName = spiderSourceName;
    }

    @Basic
    @Column(name = "archive_suport")
    public String getArchiveSuport() {
        return archiveSuport;
    }

    public void setArchiveSuport(String archiveSuport) {
        this.archiveSuport = archiveSuport;
    }

    @Basic
    @Column(name = "archive_month")
    public String getArchiveMonth() {
        return archiveMonth;
    }

    public void setArchiveMonth(String archiveMonth) {
        this.archiveMonth = archiveMonth;
    }

    @Basic
    @Column(name = "archive_revoke")
    public String getArchiveRevoke() {
        return archiveRevoke;
    }

    public void setArchiveRevoke(String archiveRevoke) {
        this.archiveRevoke = archiveRevoke;
    }



    @Basic
    @Column(name = "manu_opt_allowed")
    public String getManuOptAllowed() {
        return manuOptAllowed;
    }

    public void setManuOptAllowed(String manuOptAllowed) {
        this.manuOptAllowed = manuOptAllowed;
    }

    @Basic
    @Column(name = "VALIDITY_TIME")
    public Long getValidityTime() {
        return validityTime;
    }

    public void setValidityTime(Long validityTime) {
        this.validityTime = validityTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CmsChannelEntity that = (CmsChannelEntity) o;

        if (channelId != null ? !channelId.equals(that.channelId) : that.channelId != null) return false;
        if (websiteId != null ? !websiteId.equals(that.websiteId) : that.websiteId != null) return false;
        if (channelTypeId != null ? !channelTypeId.equals(that.channelTypeId) : that.channelTypeId != null)
            return false;
        if (websiteWorkflowId != null ? !websiteWorkflowId.equals(that.websiteWorkflowId) : that.websiteWorkflowId != null)
            return false;
        if (parentId != null ? !parentId.equals(that.parentId) : that.parentId != null) return false;
        if (codeName != null ? !codeName.equals(that.codeName) : that.codeName != null) return false;
        if (channelName != null ? !channelName.equals(that.channelName) : that.channelName != null) return false;
        if (displayName != null ? !displayName.equals(that.displayName) : that.displayName != null) return false;
        if (seqNum != null ? !seqNum.equals(that.seqNum) : that.seqNum != null) return false;
        if (redirectUrl != null ? !redirectUrl.equals(that.redirectUrl) : that.redirectUrl != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (manuscriptTypeId != null ? !manuscriptTypeId.equals(that.manuscriptTypeId) : that.manuscriptTypeId != null)
            return false;
        if (isNavigation != null ? !isNavigation.equals(that.isNavigation) : that.isNavigation != null) return false;
        if (isReferSubchannel != null ? !isReferSubchannel.equals(that.isReferSubchannel) : that.isReferSubchannel != null)
            return false;
        if (isRss != null ? !isRss.equals(that.isRss) : that.isRss != null) return false;
        if (workflowId != null ? !workflowId.equals(that.workflowId) : that.workflowId != null) return false;
        if (formTemplateId != null ? !formTemplateId.equals(that.formTemplateId) : that.formTemplateId != null)
            return false;
        if (creatorId != null ? !creatorId.equals(that.creatorId) : that.creatorId != null) return false;
        if (publisher != null ? !publisher.equals(that.publisher) : that.publisher != null) return false;
        if (modifierId != null ? !modifierId.equals(that.modifierId) : that.modifierId != null) return false;
        if (createdTime != null ? !createdTime.equals(that.createdTime) : that.createdTime != null) return false;
        if (modifiedTime != null ? !modifiedTime.equals(that.modifiedTime) : that.modifiedTime != null) return false;
        if (publishedTime != null ? !publishedTime.equals(that.publishedTime) : that.publishedTime != null)
            return false;
        if (url != null ? !url.equals(that.url) : that.url != null) return false;
        if (channelPageTemplateId != null ? !channelPageTemplateId.equals(that.channelPageTemplateId) : that.channelPageTemplateId != null)
            return false;
        if (workflowRefId != null ? !workflowRefId.equals(that.workflowRefId) : that.workflowRefId != null)
            return false;
        if (channelLevels != null ? !channelLevels.equals(that.channelLevels) : that.channelLevels != null)
            return false;
        if (editorType != null ? !editorType.equals(that.editorType) : that.editorType != null) return false;
        if (isPushed != null ? !isPushed.equals(that.isPushed) : that.isPushed != null) return false;
        if (isSameShowCc != null ? !isSameShowCc.equals(that.isSameShowCc) : that.isSameShowCc != null) return false;
        if (ccWorkflowId != null ? !ccWorkflowId.equals(that.ccWorkflowId) : that.ccWorkflowId != null) return false;
        if (visits != null ? !visits.equals(that.visits) : that.visits != null) return false;
        if (admin != null ? !admin.equals(that.admin) : that.admin != null) return false;
        if (expand != null ? !expand.equals(that.expand) : that.expand != null) return false;
        if (channelBatchNum != null ? !channelBatchNum.equals(that.channelBatchNum) : that.channelBatchNum != null)
            return false;
        if (isvoice != null ? !isvoice.equals(that.isvoice) : that.isvoice != null) return false;
        if (languages != null ? !languages.equals(that.languages) : that.languages != null) return false;
        if (speed != null ? !speed.equals(that.speed) : that.speed != null) return false;
        if (field != null ? !field.equals(that.field) : that.field != null) return false;
        if (sound != null ? !sound.equals(that.sound) : that.sound != null) return false;
        if (volume != null ? !volume.equals(that.volume) : that.volume != null) return false;
        if (frequency != null ? !frequency.equals(that.frequency) : that.frequency != null) return false;
        if (workflowArtificialcontrol != null ? !workflowArtificialcontrol.equals(that.workflowArtificialcontrol) : that.workflowArtificialcontrol != null)
            return false;
        if (validitytime != null ? !validitytime.equals(that.validitytime) : that.validitytime != null) return false;
        if (spiderSourceId != null ? !spiderSourceId.equals(that.spiderSourceId) : that.spiderSourceId != null)
            return false;
        if (spiderSourceName != null ? !spiderSourceName.equals(that.spiderSourceName) : that.spiderSourceName != null)
            return false;
        if (archiveSuport != null ? !archiveSuport.equals(that.archiveSuport) : that.archiveSuport != null)
            return false;
        if (archiveMonth != null ? !archiveMonth.equals(that.archiveMonth) : that.archiveMonth != null) return false;
        if (archiveRevoke != null ? !archiveRevoke.equals(that.archiveRevoke) : that.archiveRevoke != null)
            return false;
        if (manuOptAllowed != null ? !manuOptAllowed.equals(that.manuOptAllowed) : that.manuOptAllowed != null)
            return false;
        if (validityTime != null ? !validityTime.equals(that.validityTime) : that.validityTime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = channelId != null ? channelId.hashCode() : 0;
        result = 31 * result + (websiteId != null ? websiteId.hashCode() : 0);
        result = 31 * result + (channelTypeId != null ? channelTypeId.hashCode() : 0);
        result = 31 * result + (websiteWorkflowId != null ? websiteWorkflowId.hashCode() : 0);
        result = 31 * result + (parentId != null ? parentId.hashCode() : 0);
        result = 31 * result + (codeName != null ? codeName.hashCode() : 0);
        result = 31 * result + (channelName != null ? channelName.hashCode() : 0);
        result = 31 * result + (displayName != null ? displayName.hashCode() : 0);
        result = 31 * result + (seqNum != null ? seqNum.hashCode() : 0);
        result = 31 * result + (redirectUrl != null ? redirectUrl.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (manuscriptTypeId != null ? manuscriptTypeId.hashCode() : 0);
        result = 31 * result + (isNavigation != null ? isNavigation.hashCode() : 0);
        result = 31 * result + (isReferSubchannel != null ? isReferSubchannel.hashCode() : 0);
        result = 31 * result + (isRss != null ? isRss.hashCode() : 0);
        result = 31 * result + (workflowId != null ? workflowId.hashCode() : 0);
        result = 31 * result + (formTemplateId != null ? formTemplateId.hashCode() : 0);
        result = 31 * result + (creatorId != null ? creatorId.hashCode() : 0);
        result = 31 * result + (publisher != null ? publisher.hashCode() : 0);
        result = 31 * result + (modifierId != null ? modifierId.hashCode() : 0);
        result = 31 * result + (createdTime != null ? createdTime.hashCode() : 0);
        result = 31 * result + (modifiedTime != null ? modifiedTime.hashCode() : 0);
        result = 31 * result + (publishedTime != null ? publishedTime.hashCode() : 0);
        result = 31 * result + (url != null ? url.hashCode() : 0);
        result = 31 * result + (channelPageTemplateId != null ? channelPageTemplateId.hashCode() : 0);
        result = 31 * result + (workflowRefId != null ? workflowRefId.hashCode() : 0);
        result = 31 * result + (channelLevels != null ? channelLevels.hashCode() : 0);
        result = 31 * result + (editorType != null ? editorType.hashCode() : 0);
        result = 31 * result + (isPushed != null ? isPushed.hashCode() : 0);
        result = 31 * result + (isSameShowCc != null ? isSameShowCc.hashCode() : 0);
        result = 31 * result + (ccWorkflowId != null ? ccWorkflowId.hashCode() : 0);
        result = 31 * result + (visits != null ? visits.hashCode() : 0);
        result = 31 * result + (admin != null ? admin.hashCode() : 0);
        result = 31 * result + (expand != null ? expand.hashCode() : 0);
        result = 31 * result + (channelBatchNum != null ? channelBatchNum.hashCode() : 0);
        result = 31 * result + (isvoice != null ? isvoice.hashCode() : 0);
        result = 31 * result + (languages != null ? languages.hashCode() : 0);
        result = 31 * result + (speed != null ? speed.hashCode() : 0);
        result = 31 * result + (field != null ? field.hashCode() : 0);
        result = 31 * result + (sound != null ? sound.hashCode() : 0);
        result = 31 * result + (volume != null ? volume.hashCode() : 0);
        result = 31 * result + (frequency != null ? frequency.hashCode() : 0);
        result = 31 * result + (workflowArtificialcontrol != null ? workflowArtificialcontrol.hashCode() : 0);
        result = 31 * result + (validitytime != null ? validitytime.hashCode() : 0);
        result = 31 * result + (spiderSourceId != null ? spiderSourceId.hashCode() : 0);
        result = 31 * result + (spiderSourceName != null ? spiderSourceName.hashCode() : 0);
        result = 31 * result + (archiveSuport != null ? archiveSuport.hashCode() : 0);
        result = 31 * result + (archiveMonth != null ? archiveMonth.hashCode() : 0);
        result = 31 * result + (archiveRevoke != null ? archiveRevoke.hashCode() : 0);
        result = 31 * result + (manuOptAllowed != null ? manuOptAllowed.hashCode() : 0);
        result = 31 * result + (validityTime != null ? validityTime.hashCode() : 0);
        return result;
    }
}
